##!/usr/bin/python2
## -*- coding: utf-8 -*-
<%page args="shot, page" />
<%
from pygolem_lite.web import make_config, get_page_paths, cat, make_zoom_image
import re, os
from pygolem_lite import Shot
page_path, base_path, page = get_page_paths(shot, page)
%>
${make_config(page_path + '/Papouch.cfg')}
%try:
%if cat(page_path +'/ACCESS') == "0":
<h3> Cannot ping on DAS</h3>
%endif
%except:
Missing ACCESS file (ping on Papouch)
%endtry
<h4>Graphs: <a href="main.py">[Source main.py]</a> <a href="device_control.py">[Source device_control.py]</a> <a href="makefile">[Source makefile]</a> </h4>
${make_zoom_image("graph")}
${make_zoom_image("graph_int")}
<br/>
%if os.path.exists(page_path + '/Papouch_All.npz'):
<h4>Data:</h4>
<ul>
<li><a href=Papouch_All.npz>Papouch_All</a></li>
%for i in range(12):
<li><a href="PapouchSt_${"%02i" % (i+1)}.npz">PapouchSt_${"%02i" % (i+1)}</a></li>
%endfor
</ul>
%endif
${Shot(shot).get_pygolem_das('Papouch_St')}